package STUDENT.TRANNGUYENQUAN.OOPs.OBJECT_AND_CLASSES.Bai6;

import java.util.Scanner;

public class Views {

	public static void main(String[] args) {
		String numA ="";
		String numB ="";
		Numbers num = new Numbers();
		Models model = new Models();
		EvenOddControllers controller = new EvenOddControllers();
		Scanner sc;
		do{
			System.out.println("Nhap vao gia tri cua a:");
			sc = new Scanner(System.in);
			String temp = sc.nextLine();
			if (!temp.isEmpty()) {
				numA = temp;
			} else {
				System.out.println("Ban chua nhap so a!");
			}
		} while (numA.isEmpty());
		do {
			System.out.println("Moi ban chon kieu chan(0) hoac le(1)");
			sc = new Scanner(System.in);
			String temp = sc.nextLine();
			if (!temp.isEmpty()) {
				numA = temp;
			} else {
				System.out.println("Ban chua chon kieu chan hay le!");
			}
		} while (numB.isEmpty());
		num.setA(Integer.parseInt(numA));
		num.setB(Integer.parseInt(numB));
		System.out.println(controller.CheckIsEvenOdd(num));
	
		/*if(temp.isEmpty()){
			System.out.println("Ban chua nhap so a!");
		}else{
			num.setA(Integer.parseInt(temp));
			System.out.println("Moi ban chon kieu chan(0) hoac le (1):");
			temp = sc.nextLine();
			if(temp.isEmpty()){
				System.out.println("Ban chua chon kieu chan hoac le!");
			}else{
				num.setB(Integer.parseInt(temp));
				System.out.println(controller.CheckIsEvenOdd(num));
			}
		}*/		
	}
}
